/******************************************************************
 * Copyright(c)  : Industry.soufun.com 2013
 * Description   : Auto generat code 
 * CreateDate    : 2013-10-26
 * Creater       : Industry
 * LastChangeDate: 
 * LastChanger   : 
 * Version Info  : 1.0
 * ******************************************************************/
using System;
using System.Data;
using System.Collections.Generic;
using Industry.Proj.EntityCore;
using Onlyle.Model;
using Onlyle.DAO;

namespace Onlyle.Business
{
    public class UserBLL
    {
	#region Add

	    public bool AddUser(E_User User)
        {
            return UserDA.AddUser(User);
        }
        public bool AddUserList()
        {
            List<E_User> Userlist = new List<E_User>();
            
            return UserDA.AddUser(Userlist);
        }
        #endregion
        
        #region Update

        public bool UpDateUser(E_User User)
        {
            
            return UserDA.UpDateUser(User);
        }
        public bool UpDateUserList()
        {
            List<E_User> Userlist = new List<E_User>();
            
            return UserDA.UpDateUser(Userlist);
        }
        #endregion
        
        #region Delete
      
        public bool DeleteUser(E_User User)
        {
            
            return UserDA.DeleteUser(User);
        }
        public bool DeleteUserList()
        {
            List<E_User> Userlist = new List<E_User>();
            
            return UserDA.DeleteUser(Userlist);
        }
        #endregion
        
        
        #region SELECT
        public List<E_User> SelectAll()
        {
            List<E_User> list = new List<E_User>();
            try
            {
                list = UserDA.SelectAll();
            }
            catch(Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return list;
        }

        public List<E_User> Select(E_User User)
        {
            List<E_User> list = new List<E_User>();
           
            try
            {
                list = UserDA.Select(User);
            }
            catch(Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return list;
        }
      
        #endregion
    }
}









